home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Tk_GetRelief(3) Tk Library Procedures
-
-
-
- _________________________________________________________________
-
- NAME
- Tk_GetRelief, Tk_NameOfRelief - translate between strings
- and relief values
-
- SYNOPSIS
- #include <tk.h>
-
- int
- Tk_GetRelief(_i_n_t_e_r_p, _n_a_m_e, _r_e_l_i_e_f_P_t_r)
-
- char *
- Tk_NameOfRelief(_r_e_l_i_e_f)
-
- ARGUMENTS
- Tcl_Interp *_i_n_t_e_r_p (in) Interpreter to use for
- error reporting.
-
- char *_n_a_m_e (in) String containing relief
- name (one of ``flat'',
- ``groove'', ``raised'',
- ``ridge'', or
- ``sunken'').
-
- int *_r_e_l_i_e_f_P_t_r (out) Pointer to location in
- which to store relief
- value corresponding to
- _n_a_m_e.
-
- int _r_e_l_i_e_f (in) Relief value (one of
- TK_RELIEF_FLAT,
- TK_RELIEF_RAISED,
- TK_RELIEF_SUNKEN, |
- TK_RELIEF_GROOVE, or |
- TK_RELIEF_RIDGE).
- _________________________________________________________________
-
-
- DESCRIPTION
- Tk_GetRelief places in *_r_e_l_i_e_f_P_t_r the relief value
- corresponding to _n_a_m_e. This value will be one of
- TK_RELIEF_FLAT, TK_RELIEF_RAISED, TK_RELIEF_SUNKEN, |
- TK_RELIEF_GROOVE, or TK_RELIEF_RIDGE. Under normal cir-
- cumstances the return value is TCL_OK and _i_n_t_e_r_p is unused.
- If _n_a_m_e doesn't contain one of the valid relief names or an
- abbreviation of one of them, then an error message is stored
- in _i_n_t_e_r_p->_r_e_s_u_l_t, TCL_ERROR is returned, and *_r_e_l_i_e_f_P_t_r is
- unmodified.
-
- Tk_NameOfRelief is the logical inverse of Tk_GetRelief.
- Given a relief value it returns the corresponding string
-
-
-
- Tk 1
-
-
-
-
-
-
- Tk_GetRelief(3) Tk Library Procedures
-
-
-
- (``flat'', ``raised'', ``sunken'', ``groove'', or |
- ``ridge''). If _r_e_l_i_e_f isn't a legal relief value, then
- ``unknown relief'' is returned.
-
-
- KEYWORDS
- name, relief, string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Tk 2
-
-
-
-